package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.dto.AttrEntityDto;
import com.atguigu.gulimall.product.vo.AttrEntityVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.Map;

/**
 * 商品属性
 *
 * @author chenhaifu
 * @email 542704865@qq.com
 * @date 2021-03-04 21:22:43
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrEntityVo attr);

    PageUtils baseQueryList(Map<String, Object> params, Long catelogId, String attrType);

    AttrEntityDto getDetailById(Long attrId);

    void updateAttr(AttrEntityVo attrEntityVo);

    PageUtils queryNoAttrs(Long attrgroupId, Map<String, Object> param);
}

